package com.wanmait.baohan.mapper;

import com.wanmait.baohan.pojo.BookingTicketApplication;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookingTicketApplicationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BookingTicketApplication record);

    int insertSelective(BookingTicketApplication record);

    BookingTicketApplication selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BookingTicketApplication record);

    int updateByPrimaryKey(BookingTicketApplication record);

    Integer selectNode(Integer userId);

    BookingTicketApplication selectByTicket(BookingTicketApplication bookingTicketApplication);

    List<BookingTicketApplication> selectByStaffid(BookingTicketApplication bookingTicketApplication);

    BookingTicketApplication selectByReId(Integer id);


    List<BookingTicketApplication> selectAll(BookingTicketApplication bookingTicketApplication);

    void updateState(@Param("id") Integer id, @Param("state")Integer state);

}